﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserControl_HocVien_WebUserControl : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            if (e.Row.DataItem != null)
            {
                HyperLink hplUpdateThayTemp = ((HyperLink)e.Row.FindControl("hplUpdateThay"));
                HyperLink hplAddThayTemp = ((HyperLink)e.Row.FindControl("hplAddThay"));
                hplAddThayTemp.Attributes.Add("OnClick", "JavaScript:OpenWinCenter(700, 800, '', 'EventHocVien.aspx?LevelView=" + "" + "&UserList=" + "" + "&HocVienID=" + "" + "&EventCreate=True');");
                hplUpdateThayTemp.Attributes.Add("OnClick", "JavaScript:OpenWinCenter(700, 800, '', 'EventHocVien.aspx?LevelView=" + "" + "&UserList=" + ""+ "&HocVienID=" + "" + "&EventCreate=True');");
            }
        }
    }
}